<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo</title>
    <style>
        .panel {
            width: 300px;
            margin: 50px 0 0 50px;
            box-shadow: 0 0 10px #999;
            line-height: 1.8;
            text-align: center;
            font-size: 20px;
            color: #fff;
        }

        .title {
            background-color: #c7731f;
        }

        h1 {
            margin: 0;
            padding: 0;
        }

        .body {
            padding: 30px 10px;
            background-color: #5298c7;
        }
    </style>
</head>
<body>

<h2>
    STOP
</h2>

<div class="panel">
    <div class="title">
        <h1>唐诗一首</h1>
        <!-- <h1>aaaa</h1> -->
    </div>
    <div class="body">
        <p>
        白日依山尽，<br>
        黄河入海流。<br>
        欲穷千里目，<br>
        更上一层楼。<br>
        </p>
        <!-- <p>
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet eveniet numquam odio recusandae totam.
            Aliquam amet eaque esse excepturi, incidunt ipsum nisi officiis praesentium quaerat quibusdam, reiciendis
            sit vel voluptatibus!
        </p> -->
    </div>
</div>
<script src="../../../vendor/jquery-1.12.4.js"></script>
<script>
    $(function () {

       $('.title').click(function() {
            var $body = $(this).siblings('.body');
            // if ($body.is(':hidden')) {
            //     $body.show();
            // } else {
            //     $body.hide()
            // }

            // $body.toggle();
            // $(this).siblings('.body').toggle();

            // $body.toggle('slow', 'linear');
            // $body.fadeToggle('slow', 'linear');
            // $body.fadeTo('slow', 0.5, 'linear');
            $body.slideToggle('slow', 'linear');

       })
            
    });

</script>
</body>
</html>